import EnumStrVO from '@/model/EnumStrVO'

export default class FlexDirection {
    static readonly row = 'row'
    static readonly col = 'col'

    private static readonly rowEnum: EnumStrVO = new EnumStrVO(FlexDirection.row, 'row（行）')
    private static readonly colEnum: EnumStrVO = new EnumStrVO(FlexDirection.col, 'col（列）')

    static readonly enums: EnumStrVO[] = []
    static readonly enum_map: Map<number, string> = new Map<number, string>()
}

for (const key in FlexDirection) {
  if (FlexDirection[key] instanceof EnumStrVO) {
    FlexDirection.enums.push(FlexDirection[key])
    FlexDirection.enum_map.set(FlexDirection[key].value, FlexDirection[key].name)
  }
}
